import request from '@/utils/request'

// 查询饭堂信息列表
export function listCanteens(query) {
  return request({
    url: '/wsd_canteens/list',
    method: 'get',
    params: query
  })
}

// 查询饭堂信息详细
export function getCanteens(id) {
  return request({
    url: '/wsd_canteens/' + id,
    method: 'get'
  })
}

// 新增饭堂信息
export function addCanteens(data) {
  return request({
    url: '/wsd_canteens',
    method: 'post',
    data: data
  })
}

// 修改饭堂信息
export function updateCanteens(data) {
  return request({
    url: '/wsd_canteens',
    method: 'put',
    data: data
  })
}

// 删除饭堂信息
export function delCanteens(id) {
  return request({
    url: '/wsd_canteens/' + id,
    method: 'delete'
  })
}
